<?php $this->_extends('_layouts/bootstrap_layout'); ?>

<?php $this->_block('pageJs'); ?>
	
<?php $this->_endblock(); ?>

<?php $this->_block('pageCss'); ?>
	
<?php $this->_endblock(); ?>

<?php $this->_block('title'); ?>
	Htmltemplates - Html模板
<?php $this->_endblock(); ?>

<?php $this->_block('contents'); ?>
	<div class="span9 noMargin">
		<h3 class="title1">
			Free Jquery Plugins - Jquery插件
		</h3>
		<div class="pagination span9 noMarginL">
			<?php echo $pagination; ?>
		</div>
		<div class="thumbnails">
			<?php if(!empty($jqueryPlugins)): ?>
				<?php foreach($jqueryPlugins as $k => $jq): ?>
					<div class="span9 noMarginL">
					<?php if($k > 0): ?>
						<hr class="span9" />
					<?php endif; ?>
						<div class="span3">
							<a href="<?php echo url('htmltemplate/preview', array('id' => $jq['id'])); ?>" class="thumbnail" target="_blank">
								<img class="maxH290" alt="<?php echo $jq['name']; ?>" src="<?php echo $jqplugin_url . $jq['root_foldername'] . '/' . $jq['thumbnail']; ?>" />
							</a>
						</div>
						<div class="span6 noMargin">
							<div class="span6">
								<h3><?php echo $jq['name']; ?></h3>
								<p>
									<span class="label label-info"><?php echo $jq['type_name']; ?></span>
								</p>
								<p><?php echo $jq['sketch']; ?></p>
							</div>
							
							<div class="span6 noMargin marginTop1 marginB1-1">
								<span class="span3">
									<div class="btn-group">
										<button class="btn btn-large btn-block btn-primary dropdown-toggle" data-toggle="dropdown">
											说明 View Source
											<span class="caret"></span>
										</button>
										<ul class="dropdown-menu btn-block">
											<li><a href="<?php echo url('jqueryplugin/detail', array('id' => $jq['id'])); ?>">本页前往</a></li>
											<li><a href="<?php echo url('jqueryplugin/detail', array('id' => $jq['id'])); ?>" target="_blank">在新窗口中打开</a></li>
										</ul>
									</div>
								</span>
								<span class="span2">
									<a class="btn btn-large" 
										type="button" 
										href="<?php echo isset($jq['download_pack'])? $jqplugin_url . $jq['root_foldername'] . '/' . $jq['download_pack'] : 'javascript: void(0)'; ?>" 
										target="_blank"
									>
										<?php echo isset($jq['download_pack'])? '下载Download' : '暂时没有提供下载'; ?>
									</a>
								</span>
							</div>
						</div>
					</div>
				<?php endforeach; ?>
			<?php else: ?>	
				<li class="span12">
					<div class="alert alert-info">
						没有找到符合条件的结果...
					</div>
				</li>
			<?php endif; ?>
		</div>
		<div class="pagination span12 noMarginL">
			<?php echo $pagination; ?>
		</div>
	</div>
		
<?php $this->_endblock(); ?>

